﻿using System;
using Microsoft.Practices.ObjectBuilder;

namespace WCSFContrib.ECommerceCatalog.User.Views
{
    public partial class PageFlowError : Microsoft.Practices.CompositeWeb.Web.UI.Page, IPageFlowErrorView
    {
        private PageFlowErrorPresenter _presenter;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this._presenter.OnViewInitialized();
            }
            this._presenter.OnViewLoaded();
        }

        [CreateNew]
        public PageFlowErrorPresenter Presenter
        {
            set
            {
                this._presenter = value;
                this._presenter.View = this;
            }
        }

        protected void resumeButton_Click(object sender, EventArgs e)
        {
            _presenter.OnClearErrors();
        }
    }
}

